import Taro, { Component } from '@tarojs/taro'
import Index from './screen/home'
import './library/style/patch.css';
import './project/style/project.css';
import './project/style/fule.css';
import './project/style/yuhan.css';
import './project/style/liangqian.css';
import './project/style/meijia.css';

import DoHttp from './project/func/http/http'

let is_vip  = false;


class App extends Component {



  config = {
    pages: [

      // 梁倩
      'screen/home/index',
      'screen/user/home/index',
      'screen/vip/vip/index',
      
      'screen/user/collect/product',
      
      'screen/user/order/list',
      'screen/order/submit',
      'screen/order/cart',
      'screen/product/detail',
      'screen/product/cat',
      'screen/vip/normal/index',
      
      'screen/product/list',
      
      // --------------------------
      'screen/user/address/edit',

      'screen/user/address/list',

      'screen/user/address/add',


      'screen/user/order/detail',

      'screen/user/order/comment',

      //翟宇瀚

      'screen/vip/normal/submit',
      'screen/vip/normal/detail',
      'screen/vip/normal/gift',

      'screen/vip/vip/fee',

      
      // 乐哥页面
      'screen/vip/vip/fans/detail',
      'screen/vip/vip/fans/list',
      'screen/order/result',//待完善
      'screen/vip/vip/share/gift',
      'screen/vip/vip/share/invite',
      'screen/vip/vip/share/store',
      // 待完成页面
      'screen/user/setting/presenter',//轻提示没弹出来
      'screen/vip/vip/prediction',
      //  已完成页面
      'screen/vip/vip/settlement',
      'screen/product/comment',

      'screen/user/setting/success',//是不是该有个完成按钮返回首页或者个人中心？
      'screen/user/help/list',
      'screen/user/help/detail',
      'screen/vip/vip/equity',
      
      'screen/user/message/list',
      // 跳转闲置页面
      'screen/login/index',
      // 原始页面
     
    ],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#dd2f3c',
      navigationBarTitleText: '每日一达',
      navigationBarTextStyle: '#fff'
    },

		tabBar: {
			color: '#666',
			selectedColor: 'red',
			borderStyle: 'black',
			backgroundColor: '#f9f9f9',
			list: [
				{
					pagePath: 'screen/home/index',
					text: '首页',
					iconPath: './project/style/tabbar/home.png',
					selectedIconPath: './project/style/tabbar/home_a.png',
				},
				{
					pagePath: 'screen/product/cat',
					text: '分类',
					iconPath: './project/style/tabbar/product.png',
					selectedIconPath: './project/style/tabbar/product_a.png',
				},
				{
					pagePath: 'screen/vip/vip/index',
					text: 'VIP专区',
					iconPath: './project/style/tabbar/vip.png',
					selectedIconPath: './project/style/tabbar/vip_a.png',
				},
				{
					pagePath: 'screen/order/cart',
					text: '购物车',
					iconPath: './project/style/tabbar/cart.png',
					selectedIconPath: './project/style/tabbar/cart_a.png',
				},
				{
					pagePath: 'screen/user/home/index',
					text: '我的',
					iconPath: './project/style/tabbar/my.png',
					selectedIconPath: './project/style/tabbar/my_a.png',
				}
			]
		}



  }

	componentWillMount(){	
  }



  componentDidMount () {

  }

  componentDidShow () {}

  componentDidHide () {}

  componentCatchError () {}

  render () {
    return (
      <Index />
    )
  }
}

Taro.render(<App />, document.getElementById('app'))
